package com.cpit.qualitycontrol.service;

import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.qualitycontrol.entity.Device;

import java.util.List;

public interface DeviceService {
    Device findById(String id);

    List<Device> findAll();

    List<Device> findByCondition(int page,
                                 int size,
                                 String order,
                                 String orderBy,
                                 Long productLineId, String projectName, Long deviceTypeId, String deviceNum, String addrs);

    public List<Device> findByCondition(int page, int size, String order, String orderBy, String pattern);

    Device create(Device device) throws Exception;

    Device modify(Device device) throws Exception;

    void delete(Device device) throws Exception;

    @SuppressWarnings("rawtypes")
    TableJsonData findByConditionJqg(TableDataQueryCondition cond);

    Device updateCoordinate(String id, Double longitude, Double Latitude);
}
